import React, { Component } from 'react'

import Search from './Search/Search'
import List from './List/List'

export default class App extends Component {
  state = {
    keywords: ''
  }

  setKeywords = (keywords) => {
    this.setState({
      keywords
    })
  }
  render() {
    return (
      <div className="container">
        <Search setKeywords={this.setKeywords}></Search>
        <List keywords={this.state.keywords}></List>
      </div>
    )
  }
}
